[gd_scene load_steps=12 format=1]

[ext_resource path="res://scripts/asteroid.gd" type="Script" id=1]
[ext_resource path="res://scripts/shader/asteroid.tres" type="Shader" id=2]
[ext_resource path="res://images/asteroids/asteroid06_n.png" type="Texture" id=3]
[ext_resource path="res://images/asteroids/asteroid06_c.png" type="Texture" id=4]


[sub_resource type="ConvexPolygonShape2D" id=2]

custom_solver_bias = 0.0
points = Vector2Array( -10, -152, 0, -158, 16, -154 )

[sub_resource type="ConvexPolygonShape2D" id=3]

custom_solver_bias = 0.0
points = Vector2Array( 106, 50, 102, 64, 90, 92, 72, 124, 56, 150, 44, 156, 14, 156, -20, 150, -54, 142, -76, 124, -90, 106, -102, 86, -106, 64, -106, 22, 98, 18 )

[sub_resource type="ConvexPolygonShape2D" id=4]

custom_solver_bias = 0.0
points = Vector2Array( 100, 10, 98, 18, -106, 22, -108, -2, -106, -26, -96, -44, -88, -54, 100, 0 )

[sub_resource type="ConvexPolygonShape2D" id=5]

custom_solver_bias = 0.0
points = Vector2Array( 70, -100, 84, -84, 98, -58, 104, -38, 104, -24, 100, 0, -88, -54, -80, -80, -68, -102, -46, -138 )

[sub_resource type="ConvexPolygonShape2D" id=6]

custom_solver_bias = 0.0
points = Vector2Array( 44, -140, 60, -120, 70, -100, -46, -138, -36, -144, -20, -148, 16, -154 )

[sub_resource type="ConvexPolygonShape2D" id=7]

custom_solver_bias = 0.0
points = Vector2Array( -10, -152, 16, -154, -20, -148 )

[sub_resource type="CanvasItemMaterial" id=1]

shader/shader = ExtResource( 2 )
shader/shading_mode = 0
shader_param/normal = ExtResource( 3 )

[node name="Asteroid" type="RigidBody2D"]

visibility/light_mask = 5
input/pickable = false
shapes/0/shape = SubResource( 2 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/0/trigger = false
shapes/1/shape = SubResource( 3 )
shapes/1/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/1/trigger = false
shapes/2/shape = SubResource( 4 )
shapes/2/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/2/trigger = false
shapes/3/shape = SubResource( 5 )
shapes/3/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/3/trigger = false
shapes/4/shape = SubResource( 6 )
shapes/4/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/4/trigger = false
shapes/5/shape = SubResource( 7 )
shapes/5/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/5/trigger = false
collision/layers = 1
collision/mask = 1
mode = 0
mass = 100.0
friction = 1.0
bounce = 0.0
gravity_scale = 1.0
custom_integrator = true
continuous_cd = 0
contacts_reported = 0
contact_monitor = false
sleeping = false
can_sleep = true
velocity/linear = Vector2( 0, 0 )
velocity/angular = 0.0
damp_override/linear = -1.0
damp_override/angular = -1.0
script/script = ExtResource( 1 )
__meta__ = { "__editor_plugin_screen__":"Script" }

[node name="Sprite" type="Sprite" parent="."]

visibility/light_mask = 5
material/material = SubResource( 1 )
texture = ExtResource( 4 )

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]

visibility/visible = false
build_mode = 0
polygon = Vector2Array( 0, -158, 16, -154, 44, -140, 60, -120, 70, -100, 84, -84, 98, -58, 104, -38, 104, -24, 100, 0, 100, 10, 98, 18, 106, 50, 102, 64, 90, 92, 72, 124, 56, 150, 44, 156, 14, 156, -20, 150, -54, 142, -76, 124, -90, 106, -102, 86, -106, 64, -106, 22, -108, -2, -106, -26, -96, -44, -88, -54, -80, -80, -68, -102, -46, -138, -36, -144, -20, -148, -10, -152 )
shape_range = Vector2( 0, 5 )
trigger = false


